package com.hjwoo.app.views;

import android.os.Bundle;
import android.support.v4.view.ViewPager;

import com.hjwoo.app.R;
import com.hjwoo.app.baseviews.BaseAppCompatActivity;
import com.hjwoo.app.net.RequestListener;
import com.hjwoo.app.ui.LineWrapLinear;
import com.hjwoo.app.ui.viewpagerindicator.TabPageIndicator;

/**
 * Created by yangchuan on 2016/5/11.
 */
public class TestActivity extends BaseAppCompatActivity implements RequestListener
{

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test);
        init();
    }

    private void init()
    {
        LineWrapLinear lineWrapLinear = (LineWrapLinear) findViewById(R.id.test_linewrap);
//        lineWrapLinear.setmCellHeight(WindowManager.LayoutParams.MATCH_PARENT);
//        lineWrapLinear.setmCellWidth(WindowManager.LayoutParams.MATCH_PARENT);
//        for (int i = 0; i < 10 ; i++) {
//            TextView text = new TextView(TestActivity.this);
//            text.setText("测试文本");
//            lineWrapLinear.addView(text);
//        }
//        indicator = (TabPageIndicator) findViewById(R.id.test_indicator);
//        viewpager = (ViewPager) findViewById(R.id.test_viewpager);
//        List<View> list = new ArrayList();
//        for (int i = 0; i < 5; i++) {
//            TextView textView = new TextView(TestActivity.this);
//            textView.setText("" + i);
//            textView.setTextSize(100);
//            list.add(textView);
//        }
//        viewpager.setAdapter(new TestAdapter(TestActivity.this, list ,new  String [] {"未婚","已婚","离异","再婚","丧偶"}));
//        indicator.setViewPager(viewpager);
    }

    @Override
    public void requestSuccess(String tag, String message)
    { //请求成功的回调

    }

    @Override
    public void requestError(String message)
    { //请求失败的回调
    }
}
